<!DOCTYPE html>
<!--解决idea thymeleaf 表达式模板报红波浪线-->
<!--suppress ALL -->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 引入公用部分 -->
    <!--<script th:replace="head::static"></script>-->
    <script src="/jquery/jquery.js"></script>
    <link href="/layui/css/layui.css" rel="stylesheet" type="text/css">
    <script src="/layui/layui.js"></script>
    <!-- 样式 -->
    <link th:href="@{/css/platform/grant.css}" rel="stylesheet" type="text/css"/>
</head>
<body>


<div class="demoTable">
    <form class="layui-form" action="">
        <div class="layui-inline">
            <input class="layui-input" id="sellerName" name="sellerName" autocomplete="off" placeholder="请输入商户名称">
        </div>
        &nbsp;&nbsp;&nbsp;
        <div class="layui-inline">
            <input class="layui-input" id="orderId" name="orderId" autocomplete="off" placeholder="请输入订单号">
        </div>
        &nbsp;&nbsp;&nbsp;
        <div class="layui-inline">
            <input class="layui-input" id="serviceName" name="serviceName" autocomplete="off" placeholder="请输入服务商名称">
        </div>
        &nbsp;&nbsp;&nbsp;
        申请时间:
        <div class="layui-inline">
            <input type="text" id="queryByStartDate" name="startDate" autocomplete="off"
                   placeholder="请输入开始时间" class="layui-input layui-btn-sm">
        </div>
        -
        <div class="layui-inline">
            <input type="text" id="queryByEndDate" name="endDate" autocomplete="off"
                   placeholder="请输入结束时间" class="layui-input layui-btn-sm">
        </div>
        <button class="layui-btn search" lay-submit lay-filter="menu-query">搜索</button>
        <button class="layui-btn layui-btn-primary" onclick="$('#demoReload').val('')">清空</button>
    </form>
</div>
<br/><br/>

    <div class="layui-btn-container money">
        <button type="button" id="sum_money1" class="layui-btn layui-btn-primary">审核中总金额：0.00</button>
        <button type="button" id="sum_money2" class="layui-btn layui-btn-primary">已发放总金额：0.00</button>
        <button type="button" id="sum_money3" class="layui-btn layui-btn-primary">已取消总金额：0.00</button>
    </div>
 	<a lay-filter="exportAll" lay-submit="" class="layui-btn">导出</a>
<table class="layui-hide" id="grantTable" lay-filter="display"></table>

<script type="text/html" id="staBar">
    {{#  if(d.orderType == '2' && d.approveStatus == '0'){ }}
    <font color="#b22222">商户取消</font>
    {{#  } else if(d.orderType == '2' && d.approveStatus == '2'){ }}
    <font color="#b22222">取消发放</font>
    {{#  } else if(d.orderType == '2' && d.approveStatus == '4'){ }}
    <font color="#b22222">取消发放</font>
    {{#  } else if(d.orderType == '1' && d.approveStatus == '1'){ }}
    <font color="#5f9ea0">已完成</font><br/>
    <a class="layui-btn layui-btn-xs" data-id="d.orderId" lay-event="detailsInfo">查看结算单</a>
    {{#  } else if(d.orderType == '1' && d.approveStatus == '8'){ }}
    <font color="#5f9ea0">已完成</font><br/>
    <a class="layui-btn layui-btn-xs" data-id="d.orderId" lay-event="detailsInfo">查看结算单</a>
    {{#  } else if(d.orderType == '0' && d.approveStatus == '3'){ }}
    <select name="interest" lay-filter="editSta">
        <option value="0|{{d.orderId}}" selected="">审核中</option>
        <option value="1|{{d.orderId}}">审核通过</option>
        <option value="2|{{d.orderId}}">取消发放</option>
    </select>
    <a class="layui-btn layui-btn-xs" data-id="d.orderId" lay-event="detailsInfo">查看结算单</a>
    {{#  } else if(d.orderType == '0' && d.approveStatus == '1'){ }}
    <font color="#5f9ea0">支付中</font><br/>
    <a class="layui-btn layui-btn-xs" data-id="d.orderId" lay-event="detailsInfo">查看结算单</a>
    {{#  } else { }}
    <font color="#5f9ea0">结算中</font><br/>
    <a class="layui-btn layui-btn-xs" data-id="d.orderId" lay-event="detailsInfo">查看结算单</a>
    {{#  } }}

</script>

<!--<script type="text/html" id="grantBar">
    <a class="layui-btn layui-btn-xs" lay-event="grantSet">发放设置</a>
</script>-->
<!--    <script type="text/html" id="detailsInfoBar">-->

<!--    </script>-->
<!--    <script type="text/html" id="downLoadBar">-->
<!--        <a class="layui-btn layui-btn-xs" lay-event="downLoad">下载拆分人员清单</a>-->
<!--    </script>-->





</body>
<!-- js -->
<script th:src="@{/js/platform/grant/grant.js}"></script>
</html>